<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/user/addOrupdate" method="post">
<table border="1" th:object="${user}">
    <tr>
        <td>ID</td>
        <td><input type="text" name="id" readonly th:value="*{id}"></td>
    </tr>
    <tr>
        <td>姓名</td>
        <td><input type="text" name="name"  th:value="*{name}"></td>
    </tr>
    <tr>
        <td>年龄</td>
        <td><input type="number" name="age"  th:value="*{age}"></td>
    </tr>
    <tr>
        <td>性别</td>
        <td><input type="text" name="sex"  th:value="*{sex}"></td>
    </tr>
    <tr>
        <td>手机号</td>
        <td><input type="number" name="sjh"  th:value="*{sjh}"></td>
    </tr>
    <tr>
        <td>地址</td>
        <td><input type="text" name="dz"  th:value="*{dz}"></td>
    </tr>
    <tr height="30px" align="center" >
        <td colspan="2" ><input type="submit" value="保存"></td>

    </tr>
</table>
</form>
</body>
</html>